package me.zhengjie.pojo.export;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.util.ruoyiexcel.Excel;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author Long
 * @date 2021/6/29 16:15
 */
@Data
@ApiModel(value = "ExamTeacherExport", description = "考场监考老师导入导出模板")
public class ExamTeacherExport {

    @ApiModelProperty("考场名")
    @Excel(name = "考场名")
    private String examRoomNameCn;

    @ApiModelProperty("教师工号")
    @Excel(name = "教师工号")
    private String jobNumber;

    @ApiModelProperty("姓名")
    @Excel(name = "姓名(必填)")
    @NotEmpty(message = "姓名不可为空")
    private String nameCn;

    @ApiModelProperty("身份证")
    @Excel(name = "身份证(必填)")
    @NotEmpty(message = "身份证不可为空")
    private String idCard;

    @ApiModelProperty("手机号码")
    @Excel(name = "手机号(必填)")
    @NotEmpty(message = "手机号不可为空")
    private String phone;

    @ApiModelProperty("标识")
    @Excel(name = "标识")
    private String alias;

    @ApiModelProperty("部门名称")
    @Excel(name = "部门名称")
    private String name;

    @ApiModelProperty("监考教师类型(上报,报名)")
    @Excel(name = "监考教师类型(上报,报名)", width = 22, readConverterExp = "0=上报,1=报名", defaultValue = "0")
    private String type;

    @ApiModelProperty(value = "老师身份类型（0代表监考老师，1代表考务人员，2代表特殊人员）")
    @Excel(name = "老师身份类型(监考老师、考务人员、特殊人员)", width = 42, readConverterExp = "0=监考老师,1=考务人员,2=特殊人员", defaultValue = "0")
    private String identity;

    @ApiModelProperty(value = "性别(默认为男)")
    @Excel(name = "性别(默认为男)", readConverterExp = "0=男,1=女", defaultValue = "0")
    @NotNull(message = "性别不可为空")
    private Integer sex;

}
